//
//  LabelsCollectionViewCell.m
//  Arts1
//
//  Created by apple on 15/9/26.
//  Copyright © 2015年 Arts1. All rights reserved.
//

#import "LabelsCollectionViewCell.h"
#import "AllHeader.h"

@implementation LabelsCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame])
    {
        _labels = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.bounds.size.width, self.bounds.size.height)];
        _labels.font = [UIFont systemFontOfSize:11];
        _labels.textAlignment = NSTextAlignmentCenter;
        _labels.textColor = [UIColor grayColor];
        [self.contentView addSubview:_labels];
    }
    return self;
}

- (void)setDatalabels:(NSString *)Datalabels
{
    _Datalabels = Datalabels;
    _labels.text = _Datalabels;
}

- (void)setModel:(LabelsModel *)model
{
    _model = model;
    if (_model.isSelect)
    {
        self.backgroundColor = kCustomColor(40, 40, 50, 1);
        _labels.textColor = [UIColor whiteColor];
    }
    else
    {
        self.backgroundColor = [UIColor whiteColor];
        _labels.textColor = [UIColor grayColor];
    }
    _labels.text = _model.labelName;
}



@end
